package com.top.art.converter;

import com.top.art.entity.TeacherAllocation;
import com.top.art.vo.AllocationVO;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * The interface Teacher allocation converter.
 *
 * @author hjh
 * @version 2020 /10/6-10:09
 */
@Mapper(componentModel = "spring")
public interface TeacherAllocationConverter {

    /**
     * Do 2 vo allocation vo.
     *
     * @param model the model
     * @return the allocation vo
     */
    AllocationVO do2vo(TeacherAllocation model);

    /**
     * Dos 2 vos list.
     *
     * @param dos the dos
     * @return the list
     */
    List<AllocationVO> dos2vos(List<TeacherAllocation> dos);

}
